#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import shutil
distPath="./dist/zfc_2"
class Prod():
    def fis(self):
        os.system("sudo rm -rf {0}/*".format(distPath))
        os.system("sudo fis3 server clean&&sudo fis3 release prod -d {0}".format(distPath))
    def pubzip(self):
        path_str = distPath
        os.system("rm -rf {0}.zip".format(path_str))
        os.system("sudo find . -name .DS_Store | xargs rm -f")
        os.system("7z a {0}.zip {0}/static".format(path_str))

    def __init__(self):
        self.fis()
        self.pubzip()


prod = Prod()
# os.system("sudo rm -rf {1}/{2}/*.{2}".format(htmlPath, staticPath, v))
